<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="INDEX,FOLLOW" />
<meta http-equiv="Content-Language" content="vi" />
<meta name="description" content="{$page_description}" />
<title>{$page_title}</title>
<link rel="shortcut icon" href="{'files/favicon.png'|l}" />
<meta name="keywords" content="Photo , ảnh, hot girls, miss" />
<link rel="stylesheet" type="text/css" media="screen" href="{'css/bootstrap.min.css'|ltpl}" />
<link rel="stylesheet" type="text/css" media="screen" href="{'css/font-awesome/css/font-awesome.min.css'|ltpl}" />
<link rel="stylesheet" type="text/css" media="screen" href="{'css/menu.css'|ltpl}" />
<link rel="stylesheet" type="text/css" media="screen" href="{'css/9pmStyle.css'|ltpl}" />
<link href='http://fonts.googleapis.com/css?family=Roboto&subset=latin,vietnamese,latin-ext' rel='stylesheet' type='text/css' />

<script type="text/javascript" src="{'js/jquery-1.7.1.min.js'|ltpl}"></script>
<script src="{'js/bootstrap-dropdown.js'|ltpl}"></script> 
<script src="{'js/9pm.js'|ltpl}" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript" language="javascript">
  PG_URL = '{$PG_URL}';
	CR_URL = 'http://{$smarty.server.HTTP_HOST}{$smarty.server.REDIRECT_URL}';
	FB_APP_ID	= {$fbConfig.appId}
</script>

{$metaOGP}
{$themeCss}
{$themeJs}
  
<!--using alert , modal , dropdown , tooltip-->

</head>
<body class="{$page_body_class}">
<div id="fb-root"></div>
{literal}
<script>
	window.fbAsyncInit = function() {
	  // init the FB JS SDK
	  FB.init({
	    appId      : FB_APP_ID, 
	    status     : true,                                 // Check Facebook Login status
	    xfbml      : true                                  // Look for social plugins on the page
	  });
	
	  // Additional initialization code such as adding Event Listeners goes here
	};

(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-44145924-1', '9pm.vn');
  ga('send', 'pageview');

</script>
{/literal}
<!--Start: Header-->
{if $loggedin}
<!--Start: Header-->
<div class="topMenu1 newHdrWrap" style="background-color:transparent">
	<div class="sm-mn group">
		<div class="site-wrap2">
			<div id="navbar" class="navbar navbar-static">
				<div class="navbar-inner">
					<div class="container">
						<ul class="nav" role="navigation">
							<li> <a href="{'<front>'|l}"><i class="icon-home"></i></a></li>
							<li> <a href="http://www.facebook.com/Hoianchoicotochuc" role="button" target="_blank"><i class="icon-facebook"></i></a></li>
							<li> <a href="#" role="button"><i class="icon-google-plus"></i></a></li>
							<li class="dropdown list-care"> <a href="#" id="drop1" role="button" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-reorder"></i> <b class="caret"></b></a>
								<div class="dropdown-menu" role="menu" aria-labelledby="drop1">
									<p class="tit-top">Danh sách yêu thích</p>
									<ul class="group care-col">
										{foreach from=$aCat item=cat key=id}
										{if $id!=23}
										<li role="presentation"><a {if !$userCat[$id]}class="disabled"{/if} role="menuitem" tabindex="-1" href="{'category/detail/%d'|l:$id}"><i class="type-sm{$id}"></i>{$cat}</a></li>
										{/if}
										{/foreach}
									</ul>
									<p class="edit-bot"><a role="menuitem" tabindex="-1" href="{'user/checklist'|l}"><i class="icon-edit"></i> Thay đổi danh sách</a></p>
								</div>
							</li>
						</ul>
						<ul class="nav pull-right">
							<li class="dropdown nav-noti"><a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-bell tada"></i><span class="da-button-count notify-count">1</span></a>
								<ul class="dropdown-menu drop-noti" role="menu" aria-labelledby="drop2">
									<li>
										<h5>Thông báo</h5>
									</li>
									<li class="dropdown-item-wrap">
										<ul>
											<li> <a href="#" class="no-thumb-img"> <span class="details"> <strong><span><i class="icon-user"></i></span></strong> Bạn có <span style="color:#F00">1</span> lời mời kết bạn<span class="time">13 minutes ago</span> </span> </a> </li>
											<li> <a href="#" class="no-thumb-img"> <span class="details"> <strong><span><i class="icon-globe"></i></span></strong> Bạn có <span style="color:#F00">1</span> lời mời vào nhóm<span class="time">13 minutes ago</span> </span> </a> </li>
											<li> <a href="#" class="no-thumb-img"> <span class="details"> <strong><span><i class="icon-table"></i></span></strong> Bạn có <span style="color:#F00">1</span> lời mời tham gia sự kiện<span class="time">13 minutes ago</span> </span> </a> </li>
											<li> <a href="#"> <span class="thumbnail"><img src="http://placekitten.com/45/45" alt=""></span> <span class="details"> <strong>John Doe</strong> commented on your photo <span class="time">13 minutes ago</span> </span> </a> </li>
											<li> <a href="#"> <span class="thumbnail"><img src="http://placekitten.com/45/45" alt=""></span> <span class="details"> <strong>Jane Roe</strong> commented on your photo <span class="time">27 minutes ago</span> </span> </a> </li>
											<li> <a href="#"> <span class="thumbnail"><img src="http://placekitten.com/45/45" alt=""></span> <span class="details"> <strong>Billy John</strong> commented on your photo <span class="time">43 minutes ago</span> </span> </a> </li>
											<li> <a href="#"> <span class="thumbnail"><img src="http://placekitten.com/45/45" alt=""></span> <span class="details"> <strong>John Doe</strong> commented on your photo <span class="time">13 minutes ago</span> </span> </a> </li>
										</ul>
									</li>
									<li><a class="footer-noti" href="#">Xem thêm</a></li>
								</ul>
							</li>
							<li><a href="{'user/home/%d'|l:$ocUser.user_id}" role="button">{if $ocUser.user_avatar!=''}<img src="{$ocUser.user_avatar|thumb:'crop25x25'}" />{/if}&nbsp;&nbsp;{$ocUser.user_fullname}</a></li>
							<li id="fat-menu" class="dropdown"> <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b></a>
								<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
									<li role="presentation"><a role="menuitem" tabindex="-1" href="{'user/default'|l}"><i class="icon-file-text"></i> Hồ sơ cá nhân</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="{'user/checklist'|l}"><i class="icon-check"></i> Thêm sở thích</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="{'user/edit'|l}"><i class="icon-cog"></i> Cài đặt</a></li>
									{if 'admin news'|check_perm}<li role="presentation"><a role="menuitem" tabindex="-1" href="{'news/admin'|l}"><i class="icon-cog"></i> Quản trị</a></li>{/if}
									<li role="presentation" class="divider"></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="{'user/logout'|l}"><i class="icon-signout"></i> Đăng xuất</a></li>
								</ul>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="navbarHide" class="navbarHide navbar clearfix">
	<div class="site-wrap2 clearfix">
		<div class="logoPhoto"><a href="{'<front>'|l}"></a></div>
		<ul class="topmenuPhoto pull-left">
			<li class="type-tatca"><a href="{'<front>'|l}" data-placement="bottom" data-original-title="Tất cả" rel="tooltip" class="tooltip-trigger" data-toggle="tooltip" title="Tất cả"><i></i></a></li>
			<li class="type-quantam"><a href="{'homepage/newsfollow'|l}" data-placement="bottom" data-original-title="Quan tâm" rel="tooltip" class="tooltip-trigger" data-toggle="tooltip" title="Quan tâm"><i></i></a></li>
			<li class="type-cungthich"><a href="#" data-placement="bottom" data-original-title="Xu hướng" rel="tooltip" class="tooltip-trigger" data-toggle="tooltip" title="Xu hướng"><i></i></a></li>
			<li class="type-hot"><a href="{'category/detail/23'|l}" data-placement="bottom" data-original-title="9Hot" rel="tooltip" class="tooltip-trigger" data-toggle="tooltip" title="9Hot"><i></i></a></li>
		</ul>
		<ul class="nav pull-right">
			<li class="dropdown nav-noti"><a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-bell tada"></i><span class="da-button-count notify-count">1</span></a>
				<ul class="dropdown-menu drop-noti" role="menu" aria-labelledby="drop2">
					<li>
						<h5>Thông báo</h5>
					</li>
					<li class="dropdown-item-wrap">
						<ul>
							<li> <a href="#" class="no-thumb-img"> <span class="details"> <strong><span><i class="icon-user"></i></span></strong> Bạn có <span style="color:#F00">1</span> lời mời kết bạn<span class="time">13 minutes ago</span> </span> </a> </li>
							<li> <a href="#" class="no-thumb-img"> <span class="details"> <strong><span><i class="icon-globe"></i></span></strong> Bạn có <span style="color:#F00">1</span> lời mời vào nhóm<span class="time">13 minutes ago</span> </span> </a> </li>
							<li> <a href="#" class="no-thumb-img"> <span class="details"> <strong><span><i class="icon-table"></i></span></strong> Bạn có <span style="color:#F00">1</span> lời mời tham gia sự kiện<span class="time">13 minutes ago</span> </span> </a> </li>
							<li> <a href="#"> <span class="thumbnail"><img src="http://placekitten.com/45/45" alt=""></span> <span class="details"> <strong>John Doe</strong> commented on your photo <span class="time">13 minutes ago</span> </span> </a> </li>
							<li> <a href="#"> <span class="thumbnail"><img src="http://placekitten.com/45/45" alt=""></span> <span class="details"> <strong>Jane Roe</strong> commented on your photo <span class="time">27 minutes ago</span> </span> </a> </li>
							<li> <a href="#"> <span class="thumbnail"><img src="http://placekitten.com/45/45" alt=""></span> <span class="details"> <strong>Billy John</strong> commented on your photo <span class="time">43 minutes ago</span> </span> </a> </li>
							<li> <a href="#"> <span class="thumbnail"><img src="http://placekitten.com/45/45" alt=""></span> <span class="details"> <strong>John Doe</strong> commented on your photo <span class="time">13 minutes ago</span> </span> </a> </li>
						</ul>
					</li>
					<li><a class="footer-noti" href="#">Xem thêm</a></li>
				</ul>
			</li>
			<li><a href="{'user/home/%d'|l:$ocUser.user_id}" role="button">{if $ocUser.user_avatar!=''}<img src="{$ocUser.user_avatar|thumb:'crop25x25'}" />{/if}&nbsp;&nbsp;{$ocUser.user_fullname}</a></li>
			<li id="fat-menu" class="dropdown"> <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b></a>
				<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
					<li role="presentation"><a role="menuitem" tabindex="-1" href="{'user/default'|l}"><i class="icon-file-text"></i> Hồ sơ cá nhân</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="{'user/checklist'|l}"><i class="icon-check"></i> Thêm sở thích</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="{'user/edit'|l}"><i class="icon-cog"></i> Cài đặt</a></li>
									{if 'admin news'|check_perm}<li role="presentation"><a role="menuitem" tabindex="-1" href="{'news/admin'|l}"><i class="icon-cog"></i> Quản trị</a></li>{/if}
									<li role="presentation" class="divider"></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="{'user/logout'|l}"><i class="icon-signout"></i> Đăng xuất</a></li>
				</ul>
			</li>
		</ul>
	</div>
</div>
{if $pageRef!='user'}
<div id="navbar1" class="navbar1 clearfix">
	<div class="site-wrap2 clearfix">
		<div class="logoPhoto pull-left"><a href="{'<front>'|l}"></a></div>
		<ul class="topmenuPhoto pull-left">
			<li class="type-tatca"><a href="{'<front>'|l}"><i></i><span>Tất cả</span></a></li>
			<li class="type-quantam"><a href="{'homepage/newsfollow'|l}"><i></i><span>Quan tâm</span></a></li>
			<li class="type-cungthich"><a href="#"><i></i><span>Xu hướng</span></a></li>
			<li class="type-hot"><a href="{'category/detail/23'|l}"><i></i><span>9hot</span></a></li>
		</ul>
		<form class="navbar-search pull-right search-top">
			<input type="text" class="search-query" placeholder="Nhập từ khóa" autocomplete="off" id="" name="">
			<a class="search-btn" href="#"><i class="icon-search"></i></a>
		</form>
	</div>
	<div class="category">
		<div class="site-wrap3">
			<p class="info-cate">Tất cả các lĩnh vực mà bạn quan tâm</p>
		</div>
	</div>
</div>
{/if}
<!--End: Header-->
{else}
<div id="navbar1" class="navbar1 clearfix">
	<div class="site-wrap2 clearfix">
		<div class="logoPhoto pull-left"><a href="{'<front>'|l}"></a></div>
		<div class="pull-left slogan-night">
			<p> Chúng tôi mang lại cho bạn những thông tin thú vị trong buổi tối tuyệt vời! </p>
		</div>
	</div>
</div>
{/if}